package com.woniu.aimd.mapper;


import com.woniu.aimd.pojo.entity.Wrongchoicequestion;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface MyWChoiceQMapper {
    @Select("SELECT * FROM choicequestions WHERE user_id = #{user_id} AND status = #{status}")
    List<Wrongchoicequestion> selectmychoicequestion(@Param("user_id")String user_id,@Param("status")Integer status);
    @Delete("delete from choicequestions where id=#{id}")
    void deletemychoicequestion(@Param("id")int id);
}
